<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
	<head>
		<title>JSP for SysDepartForm form</title>
		<LINK href="css/default.css" rel=stylesheet>
		<style type="text/css">
#id1 {
	width: 100%;
	height: 100%;
	background-color: #000;
	FILTER: alpha(opacity =                       50);
	position: absolute;
	top: 0;
	left: 0;
	moz-opacity: 0.8;
	opacity: .80;
	z-index: 49;
	display: none;
}

#id2 {
	top: 10px;
	position: absolute;
	z-index: 50;
	border: 3px solid #E5E5E5;
	left: 100px;
	background-color: white;
	display: none;
}
</style>

		<script language="javascript" type="text/javascript">
		function show(){
		id1.style.height=document.body.scrollHeight+"px";
		id1.style.width=document.body.scrollWidth+"px";
		id1.style.display='block';
		id2.style.display='block';
		}
		function hide(){
		id1.style.display='none';
		id2.style.display='none';
		}
		function opchange(o){
		document.campshowareaForm.method.value=o;
		document.campshowareaForm.submit();
		}
		function cancelsub(){
			hide();
		}
		</script>
	</head>
	<body>
		<table width="880" cellspacing="0" cellpadding="0" border="0" align="center">
			<tbody>
				<tr>
					<td width="3" height="31">
						<img height="31" src="./images/table_01.gif" width="3" />
					</td>
					<td background="./images/table_02.gif" height="31">
						<table cellspacing="0" cellpadding="0" width="146" align="left"
							border="0">
							<tbody>
								<tr>
									<td width="51" background="./images/title_1_bg.gif">
										<img height="31" src="./images/title_1.gif" width="51" />
									</td>
									<td width="95" background="./images/title_1_bg.gif">
										<span class="color_b_666">接触结果管理</span>
									</td>
								</tr>
							</tbody>
						</table>
					</td>
					<td width="3">
						<img height="31" src="./images/table_03.gif" width="3" />
					</td>
				</tr>
				<tr>
					<td width="3" background="./images/table_04.gif" width="3"
						align="right">
						<img height="100%" src="./images/table_04.gif" width="3" />
					</td>
					<td>
						<logic:present name="showAreaList">
							<table width="770" border="0" align="center" cellpadding="5"
								cellspacing="1" bgcolor="#FF9900">
								<tr>
									<th>
										<bean:message key="campshowarea.jsp.showAreaId" />
									</th>
									<th>
										<bean:message key="campshowarea.jsp.campId" />
									</th>
									<th>
										<bean:message key="campshowarea.jsp.showAreaName" />
									</th>
									<th>
										<bean:message key="campshowarea.jsp.showOrder" />
									</th>
									<th>
										<bean:message key="common.jsp.operation" />
										<a href="campshowarea.do?method=list&campid=${campid}"> <u> 
											<bean:message key="common.jsp.addlink" /> </u> </a>
									</th>
								</tr>
								<logic:iterate name="showAreaList" id="i">
									<tr bgcolor="ffffff">
										<td>
											<bean:write name="i" property="showAreaId" />
										</td>
										<td>
											<bean:write name="i" property="campId" />
										</td>
										<td>
											<bean:write name="i" property="showAreaName" />
										</td>
										<td>
											<bean:write name="i" property="showOrder" />
										</td>
										<td>
											<html:link
												href="campshowarea.do?method=list&campid=${campid}&showareaid=${i.showAreaId}">
												<bean:message key="common.jsp.viewlink" />
											</html:link>
										</td>
									</tr>
								</logic:iterate>
							</table>
						</logic:present>
						
						<logic:present name="showarea" scope="request">
							
								<html:form action="/campshowarea.do?campid=${campid}">
									<table width="400" border="0" align="center" cellpadding="5"
										cellspacing="1" bgcolor="#FF9900">
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.showAreaId" />
											</td>
											<td>
												<html:text property="campshowarea.showAreaId"
													value="${showarea.showAreaId}" readonly="true" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.campId" />
											</td>
											<td>
												<html:text property="campshowarea.campId"
													value="${showarea.campId}" readonly="true" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.showAreaName" />
											</td>
											<td>
												<html:text property="campshowarea.showAreaName"
													value="${showarea.showAreaName}" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.showOrder" />
											</td>
											<td>
												<html:text property="campshowarea.showOrder"
													value="${showarea.showOrder}" />
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="middle">
												<img src='images/button_modify.gif' width="63" height="21" onclick="opchange('save')" />
												&nbsp;&nbsp;
												<img src='images/button_delete.gif' width="63" height="21" onclick="opchange('delete')" />
												&nbsp;&nbsp;
												<img src='images/button_exit.gif' width="63" height="21" onclick="opchange('list')" />
											</td>
										</tr>
									</table>
									<html:hidden property="method" value="save" />
								</html:form>
							
						</logic:present>
						<logic:notPresent name="showarea" scope="request">
							
								<html:form action="/campshowarea.do?campid=${campid}">
									<table width="400" border="0" align="center" cellpadding="5"
										cellspacing="1" bgcolor="#FF9900">
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.campId" />
											</td>
											<td>
												<html:text property="campshowarea.campId" value="${campid}"
													readonly="true" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.showAreaName" />
											</td>
											<td>
												<html:text property="campshowarea.showAreaName" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="campshowarea.jsp.showOrder" />
											</td>
											<td>
												<html:text property="campshowarea.showOrder" />
											</td>
										</tr>
										<tr>
											<td align="center" valign="middle" colspan="2">
												<img src='images/button_addnew.gif' width="63" height="21" onclick="opchange('save')" />
												&nbsp;&nbsp;
												<img src='images/button_cancel.gif' width="63" height="21" onclick="" />
											</td>
										</tr>
									</table>
									<html:hidden property="method" value="save" />
								</html:form>
							
							
						</logic:notPresent>
					</td>
					<td background="./images/table_05.gif" width="3" align="left">
						<img height="100%" src="./images/table_05.gif" width="3">
					</td>
				</tr>
				<tr>
					<td height=3 valign="top">
						<img height="12px" src="./images/table_06.gif" width="3px">
					</td>
					<td height=3 valign="top">
						<img height="3px" src="./images/table_07.gif" width="100%">
					</td>
					<td height=3 valign="top">
						<img height="12px" src="./images/table_08.gif" width="3px">
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>